<?
define('DB_HOSTNAME',"db424841349.db.1and1.com");
define('DB_USERNAME',"dbo424841349");
define('DB_PASSWORD',"trangwebdaniel");
define('DB_DBNAME',"db424841349");
/*
define('DB_HOSTNAME',"localhost");
define('DB_USERNAME',"root");
define('DB_PASSWORD',"");
define('DB_DBNAME',"cart");
*/
define('TAB_CATEGORY',"category");
define('ID_CATEGORY',"cat_id");
define('LINK_CATEGORY',"seoname");

define('TAB_PRODUCT',"product_info");
define('ID_PRODUCT',"prd_id");
define('LINK_PRODUCT',"prd_lien");

define('EMAIL_SITE',"Latino Dress <latinodance2008@yahoo.fr>");
define('EMAIL_RETURN',"latinodance2008@yahoo.fr");
define('NAME_SITE',"Latino");
define('ADRRESSE_SITE',"8 PLACE DES BOUTONS D'AR, 94000 - Créteil");


$mysqli = new mysqli(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DBNAME);
$mysqli->query("SET NAMES 'UTF8'");

if (mysqli_connect_errno()) {die("ERROR: Cannot connect. " . mysqli_connect_error());}

//header('Content-type: text/html; charset=UTF-8');
$self=$_SERVER['PHP_SELF']; 
$folder=str_replace(basename($self),'',$self);
$url_root_site="http://".$_SERVER['SERVER_NAME'];
$url_site=$url_root_site.$folder;
define('PATH_RACINE',$url_site);

$path_root=str_replace('config/'.basename(__FILE__),'',__FILE__);
define('PATH_ROOT',$path_root);